package cn.melon.view.admin.roll.ctr;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import org.apache.log4j.Logger;

import cn.melon.helper.LoggerHelper;
import cn.melon.view.admin.roll.AddRollDlg;
import cn.melon.view.admin.roll.RollJPanel;

public class RollPanelCtr implements ActionListener{

    private Logger RollPanelCtrLog = LoggerHelper.clientLogger();
    
    private RollJPanel panel = null;
    
    public RollPanelCtr(RollJPanel panel) {
        this.panel = panel;
    }
    
    @Override
    public void actionPerformed(ActionEvent e) {
        RollPanelCtrLog.info(e.getActionCommand());
        switch (e.getActionCommand()) {
        case "查询":
            
            break;
        case "添加":
            AddRollDlg dlg = new AddRollDlg();
            dlg.setVisible(true);
            break;
        default:
            break;
        }
    }


}
